package com.yuncheng.spcyApi.busService.exam.constant;

import com.yuncheng.spcyApi.busService.exam.vo.ParseQuestionRules;

/**
 * @author hua
 */
public enum DefaultQuestionRuleEnum {

    /*CHAOXING("学习通", new ParseQuestionRules(
            "\\n\\d{1,3}\\s*[\\.、：:]",
            "",
            "答案：\\s*([\\s\\S]*)",
            "；",
            "\\n\\s*[A-Z]\\s*[、.]\\s*")
    );*/

    CHAOXING("学习通", new ParseQuestionRules(
            "\\n\\d{1,3}\\s*[\\.、：:]",
            "",
                     "答案[:：]\\s*([\\s\\S]*)",
                     "；|;",
                     "\\n\\s*[A-Z]\\s*[、.]\\s*")
    );

    private String name;

    private ParseQuestionRules rule;

    DefaultQuestionRuleEnum(String name, ParseQuestionRules rule){
        this.name=name;
        this.rule=rule;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ParseQuestionRules getRule() {
        return rule;
    }

    public void setRule(ParseQuestionRules rule) {
        this.rule = rule;
    }
}
